google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',657028632,null,180,null,null], ['2024-02-26',657320830,null,191,null,null], ['2024-02-27',657625421,null,null,null,null], ['2024-02-28',658035476,null,null,null,null], ['2024-02-29',658295160,null,null,null,null], ['2024-03-01',658517154,null,null,null,null], ['2024-03-02',658775053,null,null,null,null], ['2024-03-03',659014956,null,null,null,null], ['2024-03-04',659527360,null,190,null,null], ['2024-03-05',659527360,null,99,null,null], ['2024-03-06',659652495,null,99,null,null], ['2024-03-07',660031904,null,141,null,null], ['2024-03-08',660354096,null,168,null,null], ['2024-03-09',660660624,null,189,null,null], ['2024-03-10',660973927,null,107,null,null], ['2024-03-11',661338987,190,119,null,null], ['2024-03-12',661626717,190,153,null,null], ['2024-03-13',661962968,163,186,null,null], ['2024-03-14',662234496,null,150,null,null], ['2024-03-15',662492897,null,180,null,null], ['2024-03-16',662659684,null,null,null,null], ['2024-03-17',662958464,null,160,null,null], ['2024-03-18',663286077,null,170,null,null], ['2024-03-19',663601221,null,null,null,null], ['2024-03-20',664094220,null,null,null,null], ['2024-03-21',664094220,null,null,null,null], ['2024-03-22',664694363,null,null,null,null], ['2024-03-23',664914118,null,null,null,null], ['2024-03-24',665336746,null,121,null,null], ['2024-03-25',665336746,null,123,null,null], ['2024-03-26',665636263,null,97,null,null], ['2024-03-27',665873854,null,93,null,null], ['2024-03-28',666142974,null,136,null,null], ['2024-03-29',666458043,182,182,null,null], ['2024-03-30',666893637,182,null,null,null], ['2024-03-31',667033482,187,164,null,null], ['2024-04-01',667341681,187,182,null,null], ['2024-04-02',667702485,187,188,null,null], ['2024-04-03',667975393,190,180,null,null], ['2024-04-04',668282282,null,178,null,null], ['2024-04-05',668574305,null,null,null,null], ['2024-04-06',668836917,null,null,null,null], ['2024-04-07',669218347,null,105,null,null], ['2024-04-08',669796351,null,98,null,null], ['2024-04-09',670172767,null,126,null,null], ['2024-04-10',670563551,null,122,null,null], ['2024-04-11',671035598,null,117,null,null], ['2024-04-12',671035598,191,156,null,null], ['2024-04-13',671447257,191,189,null,null], ['2024-04-14',671818748,178,86,null,null], ['2024-04-15',672169942,178,104,null,null], ['2024-04-16',672447741,158,141,null,null], ['2024-04-17',672764814,165,168,null,null], ['2024-04-18',673058096,166,null,null,null], ['2024-04-19',673352206,175,null,null,null], ['2024-04-20',673714588,192,null,null,null], ['2024-04-21',673989282,198,139,null,null], ['2024-04-22',674305389,null,147,null,null], ['2024-04-23',674586483,null,188,null,null], ['2024-04-24',674989612,null,null,null,null], ['2024-04-25',675065533,null,72,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:200}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });